<script setup>
const props = defineProps({
    items: {
        type: Array,
        default: () => []
    }
})


</script>

<template>
    <el-table :data="items" style="width: 100%; height: 100%;" height="500">
        <el-table-column type="index" width="50" />
        <el-table-column prop="username" label="名称" width="180" />
        <el-table-column prop="nickname" label="别名" width="180" />
        <el-table-column width="60" label="操作">
            <template #default="scope">
                <slot name="action-bar" :row="scope.row"></slot>
            </template>
        </el-table-column>
        <el-table-column prop="email" label="邮箱" />
    </el-table>
</template>

<style lang="scss" scoped>
.caozuo {
    cursor: pointer;
}
</style>